package com.whmall.service.crm.enumeration;

import lombok.Getter;
import lombok.RequiredArgsConstructor;

import java.io.Serializable;

@RequiredArgsConstructor
@Getter
public enum CompanyUserConfigKeyEnum implements Serializable {

    // 是否有专属目录
    HAS_EXCLUSIVE_DIRECTORY("has_exclusive_directory", "0"),
    // 是否展示签收弹窗
    HAS_SHOW_SIGN_DIALOG("has_show_sign_dialog", "1"),
    ;

    private final String name;
    private final String defaultValue;

    public static CompanyUserConfigKeyEnum fromValue(String name) {
        for (CompanyUserConfigKeyEnum e : values()) {
            if (e.getName().equals(name)) {
                return e;
            }
        }
        return null;
    }
}
